aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/routes/status/[id]/+page.ts
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/routes/status/[id]/+page.ts')
-rw-r--r--frontend/src/routes/status/[id]/+page.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/frontend/src/routes/status/[id]/+page.ts b/frontend/src/routes/status/[id]/+page.ts
index 13a72b1..6e77c6e 100644
--- a/frontend/src/routes/status/[id]/+page.ts
+++ b/frontend/src/routes/status/[id]/+page.ts
@@ -4,10 +4,10 @@ export const load: PageLoad = async ({ params, fetch }) => {
const id = params.id;
const [servicesRes, historyRes, statsRes, sslRes] = await Promise.all([
- fetch(`http://localhost:8080/api/services`).catch(() => null),
- fetch(`http://localhost:8080/api/services/${id}/history`).catch(() => null),
- fetch(`http://localhost:8080/api/services/${id}/stats`).catch(() => null),
- fetch(`http://localhost:8080/api/services/${id}/ssl`).catch(() => null)
+ fetch(`/api/services`).catch(() => null),
+ fetch(`/api/services/${id}/history`).catch(() => null),
+ fetch(`/api/services/${id}/stats`).catch(() => null),
+ fetch(`/api/services/${id}/ssl`).catch(() => null)
]);
const services = servicesRes?.ok ? await servicesRes.json() : [];